import {createBrowserRouter} from 'react-router-dom';
import MyLayout from '../pages/Layout'
import Home from '../pages/Home'
import Hospital from "../pages/Hospital";
import Order from "../pages/Hospital/Order";
import Detail from "../pages/Hospital/Detail";
import Notice from "../pages/Hospital/Notice";
const router = createBrowserRouter([{
    path: '/', element: <MyLayout></MyLayout>, children: [{
        index: true, element: <Home></Home>
    }, {
        path: '/hospital', element: <Hospital></Hospital>, children: [{
            path: 'order/:id', element: <Order></Order>
        }, {
            path: 'detail/:id', element: <Detail></Detail>
        }, {
            path: 'notice/:id', element: <Notice></Notice>
        }]
    }]
},])

export default router
